const state = {
  visible: false,
  selectInfo: {},
  selectUserIds: [],
  UserList: []
}
const mutations = {
  SELECTINFO (state, payload) {
    state.selectInfo = payload
  },
  VISIBLE (state, payload) {
    state.visible = payload
  },
  SELECTUSERIDS (state, payload) {
    // console.log('selectUserIds-payload', payload)
    state.selectUserIds = payload
  },
  USERLIST (state, payload) {
    state.UserList = payload
  }
}
const actions = {
  setvisible ({ commit }, data) {
    commit('VISIBLE', data)
  },
  setSelectUserIds ({ commit }, data) {
    commit('SELECTUSERIDS', data)
  },
  setUserList ({ commit }, data) {
    commit('USERLIST', data)
  },
  setSelectInfo ({ commit }, data) {
    commit('SELECTINFO', data)
  }
}
export default {
  namespaced: true,
  state,
  actions,
  mutations
}
